// 自动生成模板Erotable
package wearingparts

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"time"
)

// 易损件信息 结构体  Erotable
type Erotable struct {
	global.GVA_MODEL
	EroPartModel  *string    `json:"eroPartModel" form:"eroPartModel" gorm:"comment:表示不同种类的易损件的编号或名称;column:ero_part_model;" binding:"required"` //型号
	EroPartID     *string    `json:"eroPartID" form:"eroPartID" gorm:"comment:每个易损件的唯一标识符;column:ero_part_id;" binding:"required"`                    //编号
	UseTimes      *int       `json:"useTimes" form:"useTimes" gorm:"comment:记录了该易损件被使用的总次数;column:use_times;"`                                     //次数
	OperationDays *int       `json:"operationDays" form:"operationDays" gorm:"comment:指该易损件在设备上连续工作的天数;column:operation_days;"`                  //天数
	OperationDate *time.Time `json:"operationDate" form:"operationDate" gorm:"comment:表示该易损件首次安装到设备上的日期;column:operation_date;"`                //日期
	SyncDate      *time.Time `json:"syncDate" form:"syncDate" gorm:"comment:可能是指与系统或其他数据源保持一致的最后更新时间;column:sync_date;"`                 //同步日期
	CreatedBy     uint       `gorm:"column:created_by;comment:创建者"`
	UpdatedBy     uint       `gorm:"column:updated_by;comment:更新者"`
	DeletedBy     uint       `gorm:"column:deleted_by;comment:删除者"`
}

// TableName 易损件信息 Erotable自定义表名 Erotable
func (Erotable) TableName() string {
	return "Erotable"
}
